
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<script type="text/javascript">
window.onload = function() {
	var notice_ok = document.getElementById("notice_ok");
	notice_ok.onmouseover = function() {
		notice_ok.style.cursor = "pointer";
	};
};
</script>

<h2>Notice New Write</h2>

<form action="noticeRegProcess.do" method="post" enctype="multipart/form-data">

	<input type="hidden" name="url"  value="${ url }" />
	<input type="hidden" name="p"  value="2" />
	<hr style="border:#ddd 1px dotted" />
	<div id="notice_formwrapper">
		<div id="notice_new_writer">
			<span class="notice_new_menu">작성자: </span>
			<span id="notice_new_name">${ member.mName }</span>
			<input type="hidden" name="writer"  value="${ member.mNo }" />
		</div>
		<div class="dynamiclabel">
			<input name="title" id="notice_Subject" placeholder="공지사항 제목" type="text" maxlength="40" />
			<label for="title">제목</label>
		</div>
		<div class="dynamiclabel">
			<textarea name="content" id="notice_Content" placeholder="공지사항 내용을 입력하세요" style="overflow:hidden" onkeydown="limit(this.form)"></textarea>
			<label for="content">내용</label>
		</div>
		<div id="notice_img">
			<span class="notice_new_menu">첨부: </span>
			<input type="file" name="filename" />
		</div>
		<hr style="border:#ddd 1px dotted" />
		<div id="notice_submit">
			<input type="submit" value="저장" id="notice_ok" class="notice_button"  onclick="submit1(this.form)" />&nbsp;&nbsp;
			<a href="notice.do" class="board_button">취소</a>
		</div>
	</div>
</form>	